<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>

<div class="layui-btn-group" style="position:absolute;right:0px;">
    <button >添加机构</button>
    <button >全部展开</button>
    <button id="del">全部折叠</button>
</div>

<script th:inline="javascript">
    /*<![CDATA[*/
    var editFlag = [[${T(com.ruoyi.common.utils.PermissionUtils).hasPerm("sys:user:update")}]] ;
    if(editFlag == 'hiddern'){
        document.getElementById("del").style.display="none";
    }

</script>
</body>
</html>